package liu.thread.thread.pringabc;

public class PrintA implements Runnable {

	private Print printt;

	public PrintA(Print print) {
		printt = print;
	}

	@Override
	public void run() {
		boolean flag=true;
		while(flag){
			try {
				flag=printt.ABC();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	
}
